<?php require_once('include/header.php'); ?>
<? 
require_once("admin/dbconnect.php");
require_once("admin/classes/check_customer_session.php");
session_start();
check_customer_session();


$sql ="select customer.customer_id, customer.name, customer.surname from customer where customer_id = '".$_REQUEST['send_to']."'";
$rw = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($rw);
//sending email to both customer..
?>

      <div id="middle_container_for_innerpage">
      <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div> 
      <div id="middle_inner_container">
      <?php require_once('include/left_menu.php'); ?>
        
        <div id="inner_page_middle_data">
        	<div id="page_heading">Send Message to Member</div>
            <div id="message_row">Send message to <strong><?php echo $row['name']; ?> <?php echo $row['surname']; ?></strong><br />eParinay member ID: <strong><?php echo $row['customer_id']; ?></strong></div>
            <div id="message_form">
            	<form name="form1" method="POST" action="send_message_succussfull.php">
                	<div id="message_textarea"><textarea name="scrap" id="scrap" style="width:244px; height:60px;"></textarea>
                	</div>
                    <div id="message_btn"><input name="send_message_to" type="hidden" id="send_to" value="<?php echo $row['customer_id']; ?>"></div>
                    <div id="message_btn"><input name="Submit" type="image" id="Submit" src="images/images/search_go.gif" style="border:none; height:22px; width:50px;" /></div>
                </form>
            </div>
            <div id="message_caution"><span class="red-txt"><strong>Caution:</strong></span> Please do not send any harmful message. Harmful messages will be deleted automatically. eParinay.com is totally free Buddhist martimonial portal all over the world. Please use this facility carefully.</div>
   </div>
        

       
       
      </div> 
      <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
    </div> 
      <!-- middle_container ends -->
    
    
        
    
<?php require_once('include/footer.php'); ?>
